Tabs in edit page, small js fix