Fixed panel template and the way it loads.

Removed hacks to hide/show buttons and fixed the little visual glitch that was making the buttons ".git-not-available" visible for few seconds during the loading of the panel even if the project was an already inited repository.