move active menu item into directive
simplify library paging data
start upload stuff