create edit and index views