added GUI for motion detector