Removed unused method in ui