Introduced submission type
Used gem gon to put data into js