Added check window, fixed bug for opening file