showing hiding submit an dcancel button appropriately