before changing queries to submit to index view
index view accepting both get and post