Add Pages views and controller functionality. Make sorting link instead button