refactoring css attributes to css file instead of js
active state on buttons