set resolution on startup