added floating box styling
don't listen to multiple clicks
cleaned up code and added comments