sidebar mostly working
TODO: implement use of constants
TODO: improve appearance