move form to post to index view