added pagination, implemented edit functionality and fixed styling issues