added form and post function, not working yet