Fixed camera issue with preview not closing. Button navigation bug fixed. and error checks added.