added form functionaly