saving post and show it on index */some other minor changes