on the way finishing open app function