Workign on get and post methods