moved form into template