updated link hover, and added active button state
refactoring php