added edit bag functionality, added statistics to the home page