How to refresh a view in ionic