bug fixed for media gallery pagination and enhancements in media edit screen