finished title bar methods, wrote a basic layout manager for it.