changed UI and deleted useless code

changed UI and deleted useless code