Adding sort by to relationship. Changed so page type template isnt saved in the db and can be change on the fly. Added slug key to load_value, format_value and update_value. Some css fixes. Structurering the code better in some files