Implemented control of permition on UI side