added hover and click event functionality and theme function