segment button working , first screen crashing