styling and js functionality improved