open the application function