last use case implemented in UI but still not bug -free