add form rails functionality