Keep flag when sidebar hides
refactor task class
build