added canEditRowAtIndexPath method