styling and js for states