button styling and javascript function update