fixing bugs modifying frontend