refactored custom views

now you can use custom views for pages and posts