attempt of implementation, only working on titleBar