Fixed bugs with create and update post. Updated style