added theme page functionality for portal services
various fix for portal theme page front end