Updating view refresh function
Adding create function