adds psudo hover to icon, cleans up code