issue with null pointer exception + working on UI