added mobile device helper method to adjust recipe index to be grid view for mobile phones