Changing Label-buttons to Anchor-buttons
Adding function delegation and checking event type