updated posts controller with proper dropdown arrays