small changes

js not working as intended
fixed some problems in the dashboard