Deleted Unnecessary code in UI

some codes are deleted