Fixed bug with simple mark view. Added removing window when application enter background