imported view class from pages file, added input form