add back button management for sliding layout - closes #8