gui: refactoring: move out source view update and flatten it
gui: Make cursor invisible in the source view