Moving application to seperate file