Added actions for next and previous buttons.
Imports optimized