create 'new' function & change some UI logic