added support for unpublished pages and fixed css issues