button clickable, several updates to the code, removed unused libraries