fix javascript and make some forms