fixed a long standing bug with the page not refreshing when you try to add a useful page and the category was empty