switched to gallery categories. added active navbar code. rearranged main page routing