fixed styling issues and used jQuery