small fixes

Better grey theme
Refactored open session logic
Implemented first go at history mechanism