Updated posts edit screens

Updated posts edit screens to reflect the category restrictions. Also
fixed some bugs in category restriction logic