lecture 4: add, index actions and views