added obj parameter to pass dictionary to template
added basic code to display menu items