persisting direction values and displaying them