added more detail and refactored the titlebar directive
start to add some animation goodness