Hi Vladylav,
What you need to do is, Instead of on click of the button.. use a Create object and create a Department object and then Select the Department_NewEdit page.
Let me know, if you face any issues.
Hope it helps!!
Is it the correct approach?