added functionality to choose if the saved file will be automatically checkedin and published