completed ui and behavior now works