finalize front end, fix sales bugs