Update handlers.c for left/right sided dock