adding get and post