code before add movie view