readded script tags
added prevent-default to manage submit type instead of button type