modified submit functionality
updated files