updates to controller
refactor styling and js