added edit and buy capabilities