added themes and added code for managing links