fixed JS bugs, added styling to success messages