fixed the label maker on side panel
fixed up some bugs and added value hover
classified functions for readability