Rewrote the properties view.
Added properties panel as a global panel
changed some code related to theme