added frontend css and js functionality