added some functionality to the theme