fix tab

# change Jquery ajax with javascript ajax
restructure
restructure controller
restructure controller
creating edit post