added hover statements on buttons, consolidated document click functions in js