Grid view logic and backend working