Adding funcionality to sliding pane layout