toggle JS was attached to corresponding buttons