Writing views for the activities