Bar conditions almost complete , UI needs to further tidied along with
error handling