improved layout,passing demo number to the main activity