adding custom cell methods refactored