Implemented viewWithTag method to clean up loop code