Abstracted session and order views into directives