use a boolean to check if moving to other screen is possible (fixes #62)